package cn.arikeky.org.service.impl;

import cn.arikeky.basic.service.impl.BaseServiceImpl;
import cn.arikeky.org.domain.DictionaryType;
import cn.arikeky.org.mapper.DictionaryTypeMapper;
import cn.arikeky.org.service.IDictionaryTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(readOnly = true,propagation = Propagation.SUPPORTS)
public class DictionaryTypeServiceImpl extends BaseServiceImpl<DictionaryType> implements IDictionaryTypeService {

    @Autowired
    private DictionaryTypeMapper dictionarytypeMapper;

    @Override
    public List<DictionaryType> findAllById(Long id) {
        return dictionarytypeMapper.findAllById(id);
    }

    @Override
    public void deleteDetail(Long id) {
        dictionarytypeMapper.deleteDetail(id);
    }
}
